﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Web.Script.Serialization;

namespace CodeStash.Common.DataAccess.EntityFramework
{
    [DataContract]
    public partial class Language
    {
        public Language()
        {
            this.CodeSnippets = new List<CodeSnippet>();
        }

        public Language(string language1, string languageCode)
        {
            this.Language1 = language1;
            this.LanguageCode = languageCode;
            this.CodeSnippets = new List<CodeSnippet>();
        }

        [Key]
        [DataMember]
        public int LanguageId { get; set; }

        [DataMember]
        public string Language1 { get; set; }

        [DataMember]
        public string LanguageCode { get; set; }

        [DataMember]
        [ScriptIgnore]
        public virtual List<CodeSnippet> CodeSnippets { get; set; }
    }

}